package com.zhx.common.common.thread;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler{
    //为了能够将线程异常输出到日志中。不处理的话直接打印到控制台。
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.error("Exception in thread",e);
    }
}
